package com.gxc.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.gxc.model.User;
import com.gxc.service.UserService;
import org.springframework.stereotype.Component;

/**
 * UserService实现类.
 *
 * @author GongXincheng
 * @since 2019-08-18 00:13
 */
@Component
@Service(version = "1.0", timeout = 60000)
public class UserServiceImpl implements UserService {

    @Override
    public void sayHello(String hello) {
        System.out.println("service：" + hello);
    }

    @Override
    public User findById(Integer id) {
        User user = new User();
        user.setId(id);
        user.setAge("23");
        user.setPassword("123qwe");
        user.setUsername("admin");
        return user;
    }
}
